package com.infoauto.opc.gateway.opc;

import com.infoauto.opc.gateway.opc.client.ClientRunner;
import com.infoauto.opc.gateway.opc.client.OpcConnection;
import com.infoauto.opc.gateway.opc.utils.HttpClientUtil;

import java.util.HashMap;
import java.util.Map;

public class OpcTester {
    public static void main(String[] args) throws Exception {
        while (true){
            //localhost:7088/epsCfg/writeByRfid
            Map<String, String> fromData = new HashMap<>();
            fromData.put("rfid","L6T7622Z3LF000016A000A50*BX1G5185F151010022***");
            String station  = "MP010";
            fromData.put("station",station);
            HttpClientUtil.doPostRequest("http://localhost:7088/epsCfg/writeByRfid",fromData);
            Thread.sleep(2000);
        }

    }
}
